-- GENERATED SPELL FOR [Bythius the Flesh-Shaper] --


function spell0_28212(pUnit, Event) --@Poison Spray,Self--
pUnit:FullCastSpellOnTarget(30043,pUnit)
pUnit:RegisterEvent('Sorts_28212', 515, 1)
end

function Sorts_28212(pUnit, Event)
local choix_sorts_28212 = math.random(0, 0)
if choix_sorts_28212 == 0 then
pUnit:RegisterEvent('spell0_28212', 1, 1)
end
end

function mob28212_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_28212', math.random(1500, 3000), 1)
end

function mob28212_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob28212_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob28212_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(28212, 1, 'mob28212_Action')
RegisterUnitEvent(28212, 2, 'mob28212_Leave')
RegisterUnitEvent(28212, 3, 'mob28212_Kill')
RegisterUnitEvent(28212, 4, 'mob28212_Die')
